package com.test.springboot3.springboot3testdemo1.controller;

import com.test.springboot3.springboot3testdemo1.service.CacheService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created with IntelliJ IDEA.
 *
 * @author： liuziyang
 * @date： 2024/8/6-下午3:13
 * @description：
 * @modifiedBy：
 * @version: 1.0
 */
@RequiredArgsConstructor
@RestController
public class CacheController {
  private final CacheService cacheService;

  @RequestMapping("/multiply")
  public int multiply(@RequestParam("a") int a, @RequestParam("b") int b) {
    return cacheService.multiply(a, b);
  }
}
